
public class Binary {

	public static void print(int a, int i) {
		int check=100,x=a,z=0,xy=0,f=0;
		String[] s= new String[32];
		String test ="";
		while(check>1)
		{
		z=x/2;
		xy=x%2;
		check = z;
		s[f]="";
		s[f]+=String.valueOf(xy);
		x=z;
		f++;
		if(z<2)
		{
			s[f]="";
			s[f]+=String.valueOf(z);
			f++;
		}
		}
	
	
		for(int h=f-1;h>=0;h--)
		{
			
			test += s[h];
			
			
		}
		if(test.length()<=32)
		{
			for(int fg = 0;fg<=32;fg++)
			{
				if(test.length()<fg)
				{
					test = "0"+test;
				}
				
			}
		
		}
		System.out.println(test);

	
	}

}



/////////////////////////////////////////

class labjava1 {
	public static void main(String args[]) {
		
		int A = 1234; int B = 9876;
		System.out.print("A	= "); Binary.print(A, 32);
		System.out.print("B      	= "); Binary.print(B, 32);
		System.out.print("A & B 	= "); Binary.print(A&B, 32);
		System.out.print("A | B  	= "); Binary.print(A|B, 32);
		System.out.print("A ^ B  	= "); Binary.print(A^B, 32);
		System.out.print("A >> 4 	= "); Binary.print(A>>4, 32);
		System.out.print("A << 4 	= "); Binary.print(A<<4, 32);
		System.out.print("~A     	= "); Binary.print(~A, 32);
		System.out.print("-A	= "); Binary.print(-A, 32);
		System.out.print("-A >> 4	= "); Binary.print((-A)>>4, 32);
	    System.out.print("-A >>> 4  = ");  Binary.print((-A)>>>4, 32);
	}
}


///////////////////////////

/*
import java.util.Arrays;
public class Array {
	
	public static void main(String[]args)
	{
		int[] Score={30,31,32,34,35,98,12,1};
		java.util.Arrays.sort(Score);
		for (int i=0; i<Score.length; i++){
				System.out.print(Score[i]+" ");	
		}
		System.out.println("\n");
		for(int data : Score){
			System.out.println(data);
		}
		String[] ch={"F","E","D","C","B","A"};
		for(String data1 : ch){
			System.out.print(data1+" ");
		}
	}

}
*/
class Array 
{
	public static void main(String[] args) 
	{
	char input = 'A';
	switch (args) 
	{
	case 'A': 
               System.out.println("INPUT = A"); 
               break;
	case 'B': 
                System.out.println("INPUT = B");
                break;
	case 'C': 
               System.out.println("INPUT = C");
               break;
	case 'D': 
               System.out.println("INPUT = D");
               break;
	default:
               System.out.println("INPUT = OTHER");
	}
	}

